<html>
<head><meta charset="utf-8"><title>Build system when hacking on libcore · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Build.20system.20when.20hacking.20on.20libcore.html">Build system when hacking on libcore</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="202267027"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Build%20system%20when%20hacking%20on%20libcore/near/202267027" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Build.20system.20when.20hacking.20on.20libcore.html#202267027">(Jun 29 2020 at 02:33)</a>:</h4>
<p>I'm currently making some changes to a couple libcore and libstd functions. No new functions are being added and no visible behavior is changing. What is the right way to build this? I cant seem to get build times under 3:30. The command I've been using so far is <code>x.py build src/libstd -i --stage 1</code>. Using --keep-stage 1 doesnt seem to make a difference</p>



<a name="202272628"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Build%20system%20when%20hacking%20on%20libcore/near/202272628" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Léo Lanteri Thauvin <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Build.20system.20when.20hacking.20on.20libcore.html#202272628">(Jun 29 2020 at 05:11)</a>:</h4>
<p>IIRC you can actually use <code>--stage 0</code>. That will only build the standard library whereas <code>--stage 1</code>also builds the compiler.</p>



<a name="202278575"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Build%20system%20when%20hacking%20on%20libcore/near/202278575" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Amanieu <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Build.20system.20when.20hacking.20on.20libcore.html#202278575">(Jun 29 2020 at 07:21)</a>:</h4>
<p>You can use <code>x.py check src/libstd</code>, which should be as fast as it gets.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>